const { promisify } = require("util");
// // 字符画
const figlet = promisify(require("figlet"));
// // 清屏
const clear = require("clear");
// // 改变输出log颜色的工具
const chalk = require("chalk");
// 封装console
const log = (content = "", color = "white") =>
  console.log(chalk[color](content));

const showTitle = (title) => {
  clear();
  console.log(
    figlet.textSync(title)
  );
};
module.exports = {
  showTitle,
  clear,
  log,
};
